<html>
	<head>
		<style>
		div.title{
			border:solid 1px #333;
			padding-top:6px;
			padding-left:4px;
			color:#666;
			font-size:22px;
			height:30px;
			
		}
		div.title:hover{
			color:#0066CC;
		}
		
		p{
			color:#333;
			font-size:16px;
			margin-left:5px;
			margin-bottom:10px;
			margin-top:10px;
		}
		
		div.code{
			border:solid 1px #333;
			background:#fff3f3;
			color:#333;
			padding:4px;
			margin:5px;
			font-size:12px;
			margin-bottom:10px;
		}
		
		</style>
		<title>Cache management doc</title>
	</head>
	<body>

		<div class="title">
		Using Cache management
		</div>
		
		<p>
		Create a CacheManager instance.	
		</p>
		
		<div class="code">
		cm = createObject( 'component', 'cacheManagement.CacheManager' ).init( expandPath( 'cache.xml' ) );
		</div>
		
		<p>
		Add an element into the cache.
		</p>
		
		<div class="code">
		cm.add( "it.millemultimedia.test.User", "key1", "myValue" );
		</div>
		
		<p>
		Remove cache element.
		</p>
		
		<div class="code">
		cm.removeCache( "it.millemultimedia.test.User", "key1" );
		</div>
		
		<p>
		Remove all cache elements.
		</p>
		
		<div class="code">
		cm.removeAll( "it.millemultimedia.test.User" );
		</div>
		
		<p>
		Get element from the cache.
		</p>
		
		<div class="code">
		cm.get( "it.millemultimedia.test.User", "key1" );
		</div>

		
	</body>
</html>